import java.io.File;
import java.util.ArrayList;


public class IndexPresent 
{

	public ArrayList<Integer> indexPresentList(String[] headerTypes, String path)
	{
		//System.out.println("In");
		ArrayList<Integer> present = new ArrayList<Integer>();
		int k = path.indexOf(".");
		String fileName = path.substring(0, k);
		for(int i=0; i< headerTypes.length  ;i++)
		{
			File f = new File(fileName+"."+(i+1)+".lht");
			if(f.exists())
				present.add(i+1);
			else
				continue;
		}
		//for(int i =0 ; i< present.size();i++)
		//System.out.println(present.get(i));
		//System.out.println("Bitch");
		return present;
	}
}
